package ecom.appcode.business;

import java.util.List;

import ecom.appcode.common.daobean.SliderDaoBean;
import ecom.appcode.dao.daointerface.SliderDao;
import ecom.appcode.dao.daointerface.SliderDaoImpl;

public class SliderLogicImpl implements SliderLogic{
    
    /** Add New Slider */
    public boolean addNewSlider(String image, String description) {
        SliderDao slider = new SliderDaoImpl();
        boolean result = slider.addNewSlider(image, description);
        return result;
    }
    
    /** Load All Slider */
    public List<SliderDaoBean> loadAllSlider() {
        SliderDao slider = new SliderDaoImpl();
        List<SliderDaoBean> list = slider.loadAllSlider();
        return list;
    }
    
    /** Delete Slider */
    public  boolean deleteSlider(int sliderID) {
        SliderDao slider = new SliderDaoImpl();
        boolean result =  slider.deleteSlider(sliderID);
        return result;
    }
}
